package org.come.Jpanel;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Line2D;
import java.awt.image.ImageObserver;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.swing.*;

import com.tool.role.RoleData;
import com.tool.tcp.Sprite;
import com.tool.tcp.SpriteFactory;
import com.updateNew.MyIsif;
import org.come.Frame.WorldTestsmallmapJframe;
import org.come.bean.LoginResult;
import org.come.bean.NpcInfoBean;
import org.come.bean.PathPoint;

import com.tool.btn.FormsOnOffBtn;
import com.tool.image.ImageMixDeal;
import com.tool.tcpimg.UIUtils;
import org.come.entity.Goodstable;
import org.come.good.Flight;
import org.come.model.Gamemap;
import org.come.mouslisten.SystemMouslisten;
import org.come.until.*;


import static org.come.Jpanel.WorldMapJpanel.mapmodel;

//任我行
public class WorldTestsmallmapJpanel extends JPanel
//{
//
//    private int Dx = 0;
//    private int Dy = 0;
//    private String xy = "";
//    private FormsOnOffBtn offBtn;
//
//    public static Map<Integer, String> MapName;
//
//    public JLabel[] sp;
//    public Sprite tcp;
//    public JLabel m1207;
//    private long time;
//
//    public static ImageIcon icony;
//    private static JLabel labNoCWorld;
//    private static JLabel moveWorld;
//    private static JLabel synpcWorld;
//    private static JLabel rwnpcWorld;
//    private static JLabel qbnpxWorld;
//    public List pathPoints = new ArrayList();
//
//    //        小地图旗子
//    private static List<JLabel> tps = new ArrayList<>();
//    public static List<Goodstable> chaxunss;
//    //        小地图旗子
//    public int pathPointsx;
//    public int pathPointsy;
//    //        小地图旗子
//    public WorldTestsmallmapJpanel(WorldTestsmallmapJframe worldTestsmallmapJframe) throws IOException {
//        this.setLayout(null);
//        this.setBackground(UIUtils.Color_BACK);
//    }
//
//    ImageIcon icon = new ImageIcon(imageMap.getImgMap().get("DWTB5"),"DWTB5");
//    Font f5 = new Font("TimesRoman", Font.BOLD + Font.ITALIC, 14);
//    Color color = new Color(32, 17, 10);
//    Color color1 = new Color(151, 82, 37);
//    Color color2 = new Color(103, 15, 8);
//
//    //        小地图旗子
//    public void clearTps(){
//        for (JLabel tp : tps) {
//            this.remove(tp);
//        }
//        tps.clear();
//        chaxunss = null;
//    }
//    //        小地图旗子
//    @Override
//    protected void paintComponent(Graphics g) {
////        super.paintComponent(g);
//        //        小地图旗子
//        if(chaxunss == null){
//
//            chaxunss = GoodsListFromServerUntil.chaxunss(2011);
//            if(chaxunss == null){
//                chaxunss = new ArrayList<>();
//            }
//            chaxunss.addAll(GoodsListFromServerUntil.chaxunss(2012));
//            Long mapid = ImageMixDeal.userimg.getRoleShow().getMapid();
//            JLabel tp;
//            for (Goodstable goodstable : chaxunss) {
//                String[] split = goodstable.getValue().split("\\|");
//                for (int i = 0; i < split.length; i++) {
//                    String[] strings = split[i].split(",");
//                    if(strings[0].contains(String.valueOf(WorldMapJpanel.ditubianma))){
//                        tp = new JLabel();
//                        tp.setBounds((int)((double)(Integer.parseInt(strings[2]) / 20) / WorldMapJpanel.mapmodel.getBili_x())+3,
//                                (int)((double)(Integer.parseInt(strings[3]) / 20) / WorldMapJpanel.mapmodel.getBili_y())+18,16,21);
//                        if(goodstable.getType() == 2011){
//                            tp.setIcon(CutButtonImage.getImage("skin/8100226/button/蓝旗子.png", 16, 21));
//                        }else{
//                            tp.setIcon(CutButtonImage.getImage("skin/8100226/button/黄旗子.png", 16, 21));
//                        }
//
//                        tp.addMouseListener(new MouseListener() {
//                            @Override
//                            public void mouseClicked(MouseEvent e) {
//                                //system.out.println("mouseClicked");
//                                Flight.Flightchess(goodstable, goodstable.getType());
//                            }
//
//                            @Override
//                            public void mousePressed(MouseEvent e) {
//                                //system.out.println("mousePressed");
//                            }
//
//                            @Override
//                            public void mouseReleased(MouseEvent e) {
//
//                            }
//
//                            @Override
//                            public void mouseEntered(MouseEvent e) {
//
//                            }
//
//                            @Override
//                            public void mouseExited(MouseEvent e) {
//
//                            }
//                        });
//                        tps.add(tp);
//                    }
//                }
//            }
//        }
//
//        for (JLabel tp : tps) {
//            this.add(tp);
//        }
//        //        小地图旗子
//
//        WorldMapJpanel.mapmodel.getZoom().draw(g);
////        g.drawImage(this.icon.getImage(), (int)((double)(ImageMixDeal.userimg.getRoleShow().getX() / 20) / WorldMapJpanel.mapmodel.getBili_x()) + 25, (int)((double)(ImageMixDeal.userimg.getRoleShow().getY() / 20) / WorldMapJpanel.mapmodel.getBili_y()) + 25, 10, 10, this);
//        g.setColor(Color.RED);
//        g.setFont(this.f5);
//        g.drawString(this.xy, this.Dx, this.Dy);
////        Graphics2D g2 = (Graphics2D)g;
////        if (this.pathPoints.size() > 1) {
////        	int ditubianma = WorldMapJpanel.ditubianma;
////        	WorldMapJpanel.iWantToFly(ditubianma+","+"1"+","+((PathPoint)this.pathPoints.get(1)).getX()+","+((PathPoint)this.pathPoints.get(1)).getY());
////        	this.pathPoints = new ArrayList<>();
//        //            for(int i = 0; i < this.pathPoints.size() - 1; ++i) {
////                Stroke dash = new BasicStroke(5.0F, 1, 1, 3.5F, new float[]{2.5F, 10.0F}, 0.0F);
////                g2.setStroke(dash);
////                g2.draw(new Line2D.Double((double)((int)((double)(((PathPoint)this.pathPoints.get(i)).getX() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i)).getY() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i + 1)).getX() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i + 1)).getY() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D))));
////            }
////            g2.dispose();
////        }
//    }
//
//    public List<String> getNpcfunction() {
//        return TestsmallmapJpanel.npcfunction;
//    }
//
//    public int getPathPointsx() {
//        return this.pathPointsx;
//    }
//
//    public void setPathPointsx(final int pathPointsx) {
//        this.pathPointsx = pathPointsx;
//    }
//
//    public int getPathPointsy() {
//        return this.pathPointsy;
//    }
//
//    public void setPathPointsy(final int pathPointsy) {
//        this.pathPointsy = pathPointsy;
//    }
//
//    public String getXy() {
//        return xy;
//    }
//
//    public void setXy(String xy) {
//        this.xy = xy;
//    }
//
//    public int getDx() {
//        return Dx;
//    }
//
//    public void setDx(int dx) {
//        Dx = dx;
//    }
//
//    public int getDy() {
//        return Dy;
//    }
//
//    public void setDy(int dy) {
//        Dy = dy;
//    }
//
//    public FormsOnOffBtn getOffBtn() {
//        return offBtn;
//    }
//
//    public void setOffBtn(FormsOnOffBtn offBtn) {
//        this.offBtn = offBtn;
//    }
//
//    public static JLabel getLabNoCWorld() {
//        return labNoCWorld;
//    }
//
//    public static void setLabNoCWorld(JLabel labNoCWorld) {
//        WorldTestsmallmapJpanel.labNoCWorld = labNoCWorld;
//    }
//
//    public static JLabel getMoveWorld() {
//        return moveWorld;
//    }
//
//    public static void setMoveWorld(JLabel moveWorld) {
//        WorldTestsmallmapJpanel.moveWorld = moveWorld;
//    }
//
//
//    public static JLabel getQbnpxWorld() {
//        return qbnpxWorld;
//    }
//
//    public static void setQbnpxWorld(JLabel qbnpxWorld) {
//        WorldTestsmallmapJpanel.qbnpxWorld = qbnpxWorld;
//    }
//
//    public static JLabel getRwnpcWorld() {
//        return rwnpcWorld;
//    }
//
//    public static void setRwnpcWorld(JLabel rwnpcWorld) {
//        WorldTestsmallmapJpanel.rwnpcWorld = rwnpcWorld;
//    }
//
//
//    public static JLabel getSynpcWorld() {
//        return synpcWorld;
//    }
//
//    public static void setSynpcWorld(JLabel synpcWorld) {
//        WorldTestsmallmapJpanel.synpcWorld = synpcWorld;
//    }
//
//
//    public JLabel getM1207() {
//        return this.m1207;
//    }
//
//    public void setM1207(final JLabel m1207) {
//        this.m1207 = m1207;
//    }
//}
//增加小地图显示npc-现问题是不能切换对应地图
{

    private int Dx = 0;
    private int Dy = 0;
    private String xy = "";
    private FormsOnOffBtn offBtn;

    public static Map<Integer, String> MapName;

    public JLabel[] sp;
    public Sprite tcp;
    public JLabel m1207;
    private long time;

    public static ImageIcon icony;
    private static JLabel labNoCWorld;
    private static JLabel moveWorld;
    private static JLabel synpcWorld;
    private static JLabel rwnpcWorld;
    private static JLabel qbnpxWorld;
    public List pathPoints = new ArrayList();

    //        小地图旗子
    private static List<JLabel> tps = new ArrayList<>();
    public static List<Goodstable> chaxunss;
    //        小地图旗子
    public int pathPointsx;
    public int pathPointsy;
    public WorldTestsmallmapJpanel(WorldTestsmallmapJframe worldTestsmallmapJframe) throws IOException {
        this.setLayout(null);
        this.setBackground(UIUtils.Color_BACK);

        time = 0L;
        icony = new ImageIcon("skin/8100226/newbutton/CSD.png");
        MapName = new HashMap();
        this.tcp = SpriteFactory.VloadSprite("resource/mouse/ZD.tcp", null);
        if("水墨UI".equals(MyIsif.getStyle())) {
            this.add((Component)(this.offBtn = new FormsOnOffBtn("skin/8100226/newbutton/xdtgbaj.png", 1, 1103)));
        }else {
            this.add((Component)(this.offBtn = new FormsOnOffBtn("skin/8100226/newbutton/xdtgbajh.png", 1, 1103)));
        }
        this.add((Component)(this.m1207 = new JLabel()));
        (WorldTestsmallmapJpanel.qbnpxWorld = new JLabel()).setOpaque(false);
        WorldTestsmallmapJpanel.qbnpxWorld.setBounds(50, WorldMapJpanel.mapmodel.getMin_y() + 30, 15, 15);
        WorldTestsmallmapJpanel.qbnpxWorld.addMouseListener(new SystemMouslisten(36) );
        WorldTestsmallmapJpanel.qbnpxWorld.addMouseListener(new SystemMouslisten(31) );
        this.add((Component)WorldTestsmallmapJpanel.qbnpxWorld);

        (WorldTestsmallmapJpanel.moveWorld = new JLabel()).setOpaque(false);
        WorldTestsmallmapJpanel.moveWorld.setBounds(100, WorldMapJpanel.mapmodel.getMin_y() + 30, 15, 15);
        WorldTestsmallmapJpanel.moveWorld.addMouseListener(new SystemMouslisten(33));
        WorldTestsmallmapJpanel.moveWorld.addMouseListener(new SystemMouslisten(28));
        this.add((Component)WorldTestsmallmapJpanel.moveWorld);

        (WorldTestsmallmapJpanel.labNoCWorld = new JLabel()).setOpaque(false);
        WorldTestsmallmapJpanel.labNoCWorld.setBounds(100+50, WorldMapJpanel.mapmodel.getMin_y() + 30, 15, 15);
        WorldTestsmallmapJpanel.labNoCWorld.addMouseListener(new SystemMouslisten(32));
        WorldTestsmallmapJpanel.labNoCWorld.addMouseListener(new SystemMouslisten(27));
        this.add((Component)WorldTestsmallmapJpanel.labNoCWorld);

        (WorldTestsmallmapJpanel.rwnpcWorld = new JLabel()).setOpaque(false);
        WorldTestsmallmapJpanel.rwnpcWorld.setBounds(100+50*2, WorldMapJpanel.mapmodel.getMin_y() + 30, 15, 15);
        WorldTestsmallmapJpanel.rwnpcWorld.addMouseListener(new SystemMouslisten(34));
        WorldTestsmallmapJpanel.rwnpcWorld.addMouseListener(new SystemMouslisten(29));
        this.add((Component)WorldTestsmallmapJpanel.rwnpcWorld);

        (WorldTestsmallmapJpanel.synpcWorld = new JLabel()).setOpaque(false);
        WorldTestsmallmapJpanel.synpcWorld.setBounds(100+50*3, WorldMapJpanel.mapmodel.getMin_y() + 30, 15, 15);
        WorldTestsmallmapJpanel.synpcWorld.addMouseListener(new SystemMouslisten(35));
        WorldTestsmallmapJpanel.synpcWorld.addMouseListener(new SystemMouslisten(30));
        this.add((Component)WorldTestsmallmapJpanel.synpcWorld);

        this.sp = new JLabel[5];
        int i = 0;
        while (i < this.sp.length) {
            (this.sp[i] = new JLabel()).setOpaque(false);
            if("水墨UI".equals(MyIsif.getStyle())) {
                this.sp[i].setIcon((Icon) CutButtonImage.getImage("skin/8100226/newbutton/XDRXZK.png", 18, 18));
            }else {
                this.sp[i].setIcon((Icon) CutButtonImage.getImage("skin/8100226/newbutton/XDRXZKh.png", 18, 18));
            }
            this.add((Component)this.sp[i]);
            ++i;
        }
    }

    //        小地图旗子
    public void clearTps(){
        for (JLabel tp : tps) {
            this.remove(tp);
        }
        tps.clear();
        chaxunss = null;
    }
    //        小地图旗子

    ImageIcon icon = new ImageIcon("skin/8100226/newbutton/DWTB5.png");
    Font f5 = new Font("TimesRoman", Font.BOLD + Font.ITALIC, 14);
    Color color = new Color(32, 17, 10);
    Color color1 = new Color(151, 82, 37);
    Color color2 = new Color(103, 15, 8);

    @Override
    protected void paintComponent(Graphics g) {

        WorldTestsmallmapJpanel.qbnpxWorld.setBounds(22, WorldMapJpanel.mapmodel.getMin_y() + 41, 15, 15);
        WorldTestsmallmapJpanel.moveWorld.setBounds(90, WorldMapJpanel.mapmodel.getMin_y() + 41, 15, 15);
        WorldTestsmallmapJpanel.labNoCWorld.setBounds(90+68, WorldMapJpanel.mapmodel.getMin_y() + 41, 15, 15);
        WorldTestsmallmapJpanel.rwnpcWorld.setBounds(90+68*2, WorldMapJpanel.mapmodel.getMin_y() + 41, 15, 15);
        WorldTestsmallmapJpanel.synpcWorld.setBounds(90+68*3, WorldMapJpanel.mapmodel.getMin_y() + 41, 15, 15);

        final LoginResult loginResult = RoleData.getRoleData().getLoginResult();
        this.time += 12L;

        super.paintComponent(g);
        //        小地图旗子
        if(chaxunss == null){

            chaxunss = GoodsListFromServerUntil.chaxunss(2011);
            if(chaxunss == null){
                chaxunss = new ArrayList<>();
            }
            chaxunss.addAll(GoodsListFromServerUntil.chaxunss(2012));
            Long mapid = ImageMixDeal.userimg.getRoleShow().getMapid();
            JLabel tp;
            for (Goodstable goodstable : chaxunss) {
                String[] split = goodstable.getValue().split("\\|");
                for (int i = 0; i < split.length; i++) {
                    String[] strings = split[i].split(",");
                    if(strings[0].contains(String.valueOf(WorldMapJpanel.ditubianma))){
                        tp = new JLabel();
                        tp.setBounds((int)((double)(Integer.parseInt(strings[2]) / 20) / WorldMapJpanel.mapmodel.getBili_x())+3,
                                (int)((double)(Integer.parseInt(strings[3]) / 20) / WorldMapJpanel.mapmodel.getBili_y())+18,16,21);
                        if(goodstable.getType() == 2011){
                            tp.setIcon(CutButtonImage.getImage("skin/8100226/button/蓝旗子.png", 16, 21));
                        }else{
                            tp.setIcon(CutButtonImage.getImage("skin/8100226/button/黄旗子.png", 16, 21));
                        }

                        tp.addMouseListener(new MouseListener() {
                            @Override
                            public void mouseClicked(MouseEvent e) {
                                //system.out.println("mouseClicked");
                                Flight.Flightchess(goodstable, goodstable.getType());
                            }

                            @Override
                            public void mousePressed(MouseEvent e) {
                                //system.out.println("mousePressed");
                            }

                            @Override
                            public void mouseReleased(MouseEvent e) {

                            }

                            @Override
                            public void mouseEntered(MouseEvent e) {

                            }

                            @Override
                            public void mouseExited(MouseEvent e) {

                            }
                        });
                        tps.add(tp);
                    }
                }
            }
        }

        for (JLabel tp : tps) {
            this.add(tp);
        }
        //        小地图旗子
        WorldMapJpanel.mapmodel.getZoom().draw(g);
        this.m1207.setBounds(WorldMapJpanel.mapmodel.getMin_x() + 4, 50, 78, WorldMapJpanel.mapmodel.getMin_y() - 25);
        this.offBtn.setBounds(WorldMapJpanel.mapmodel.getMin_x() + 48, 6, 40, 25);

//        WorldMapJpanel.mapmodel.getZoom().draw(g);
//        g.drawImage(this.icon.getImage(), (int)((double)(ImageMixDeal.userimg.getRoleShow().getX() / 20) / WorldMapJpanel.mapmodel.getBili_x()) + 25, (int)((double)(ImageMixDeal.userimg.getRoleShow().getY() / 20) / WorldMapJpanel.mapmodel.getBili_y()) + 25, 10, 10, this);
        g.setColor(Color.RED);

        final Graphics2D g2 = (Graphics2D)g;

        g.setFont(this.f5);
        g.drawString(this.xy, this.Dx, this.Dy);
        g.setFont(UIUtils.TEXT_FONT);
        g.setFont(UIUtils.TEXT_FONT);
        final Gamemap game = (Gamemap) UserMessUntil.getAllmapbean().getAllMap().get(loginResult.getMapid() + "");
        final List<String> strings = SplitStringTool.splitString(game.getMapnpc());

        g.setColor(Color.white);
        g.drawString("全部", 20+22, mapmodel.getMin_y() + 53);
        this.sp[4].setBounds(20, mapmodel.getMin_y() + 40, 18, 18);
        g.drawString("传送", 88+22, mapmodel.getMin_y() + 53);
        this.sp[1].setBounds(88, mapmodel.getMin_y() + 40, 18, 18);
        g.drawString("普通", 88+22+68, mapmodel.getMin_y() + 53);
        this.sp[0].setBounds(88+68, mapmodel.getMin_y() + 40, 18, 18);
        g.drawString("任务", 88+22+68*2, mapmodel.getMin_y() + 53);
        this.sp[2].setBounds(88+68*2, mapmodel.getMin_y() + 40, 18, 18);
        g.drawString("商业", 88+22+68*3, mapmodel.getMin_y() + 53);
        this.sp[3].setBounds(88+68*3, mapmodel.getMin_y() + 40, 18, 18);

//临时屏蔽，现在npc只能跟随当前地图的npc有问题
//        int j = 0;
//        while (j < strings.size()) {
//            final NpcInfoBean infoBean = UserMessUntil.getnpc((String)strings.get(j));
//            if (infoBean != null) {
//                try {
//                    WorldTestsmallmapJpanel.MapName.put(Integer.valueOf(j), infoBean.getNpctable().getNpcname());
//                    final int x1 = (int) ((double) (Integer.parseInt(infoBean.getNpctable().getTx()) / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0);
//                    final int y1 = (int) ((double) (Integer.parseInt(infoBean.getNpctable().getTy()) / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0);
//
////                    普通npc
////                    if (TestsmallmapJpanel.labNoC.getIcon() != null && !infoBean.getNpctable().getNpctype().equals("2")) {
//                    if (WorldTestsmallmapJpanel.labNoCWorld.getIcon() != null && infoBean.getNpctable().getTypexdt().equals("2")) {
//                        g.setColor(Color.green);
//                        g.drawString((String) WorldTestsmallmapJpanel.MapName.get(Integer.valueOf(j)), x1 - 40, y1 + 10);
//                    } else {
//                        g.setColor(Color.green);
//                        g.drawString("", x1 - 25, y1 + 10);
//                    }
////                    任务npc
//                    if (WorldTestsmallmapJpanel.rwnpcWorld.getIcon() != null && infoBean.getNpctable().getTypexdt().equals("3")) {
//                        g.setColor(Color.orange);
//                        g.drawString((String) WorldTestsmallmapJpanel.MapName.get(Integer.valueOf(j)), x1 - 40, y1 + 10);
//                    } else {
//                        g.setColor(Color.orange);
//                        g.drawString("", x1 - 25, y1 + 10);
//                    }
////                    商业npc
//                    if (WorldTestsmallmapJpanel.synpcWorld.getIcon() != null && infoBean.getNpctable().getTypexdt().equals("4")) {
//                        g.setColor(Color.cyan);
//                        g.drawString((String) WorldTestsmallmapJpanel.MapName.get(Integer.valueOf(j)), x1 - 40, y1 + 10);
//                    } else {
//                        g.setColor(Color.cyan);
//                        g.drawString("", x1 - 25, y1 + 10);
//                    }
////                    传送npc
//                    if (WorldTestsmallmapJpanel.moveWorld.getIcon() != null && infoBean.getNpctable().getTypexdt().equals("1")) {
//                        g.drawImage(WorldTestsmallmapJpanel.icony.getImage(), x1 - 30, y1-5, (ImageObserver) this);
//                    } else {
//                        g.drawImage(null, x1 - 25, y1 + 10, (ImageObserver) this);
//                    }
//
//
//                }catch (Exception e){
//                    //system.out.println(infoBean.getNpctable().getNpcid());
//
//                }
//            }
//
//            ++j;
//        }
//临时屏蔽，现在npc只能跟随当前地图的npc有问题

        g.setFont(this.f5);
//        Graphics2D g2 = (Graphics2D)g;
        g.setColor(Color.RED);
//        Graphics2D g2 = (Graphics2D)g;
//        if (this.pathPoints.size() > 1) {
//        	int ditubianma = WorldMapJpanel.ditubianma;
//        	WorldMapJpanel.iWantToFly(ditubianma+","+"1"+","+((PathPoint)this.pathPoints.get(1)).getX()+","+((PathPoint)this.pathPoints.get(1)).getY());
//        	this.pathPoints = new ArrayList<>();
        	//            for(int i = 0; i < this.pathPoints.size() - 1; ++i) {
//                Stroke dash = new BasicStroke(5.0F, 1, 1, 3.5F, new float[]{2.5F, 10.0F}, 0.0F);
//                g2.setStroke(dash);
//                g2.draw(new Line2D.Double((double)((int)((double)(((PathPoint)this.pathPoints.get(i)).getX() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i)).getY() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i + 1)).getX() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D)), (double)((int)((double)(((PathPoint)this.pathPoints.get(i + 1)).getY() / 20) / WorldMapJpanel.mapmodel.getBili_x() + 25.0D))));
//            }
//            g2.dispose();
//        }
    }

    public List<String> getNpcfunction() {
        return TestsmallmapJpanel.npcfunction;
    }

    public int getPathPointsx() {
        return this.pathPointsx;
    }

    public void setPathPointsx(final int pathPointsx) {
        this.pathPointsx = pathPointsx;
    }

    public int getPathPointsy() {
        return this.pathPointsy;
    }

    public void setPathPointsy(final int pathPointsy) {
        this.pathPointsy = pathPointsy;
    }

    public String getXy() {
        return xy;
    }

    public void setXy(String xy) {
        this.xy = xy;
    }

    public int getDx() {
        return Dx;
    }

    public void setDx(int dx) {
        Dx = dx;
    }

    public int getDy() {
        return Dy;
    }

    public void setDy(int dy) {
        Dy = dy;
    }

    public FormsOnOffBtn getOffBtn() {
        return offBtn;
    }

    public void setOffBtn(FormsOnOffBtn offBtn) {
        this.offBtn = offBtn;
    }

    public static JLabel getLabNoCWorld() {
        return labNoCWorld;
    }

    public static void setLabNoCWorld(JLabel labNoCWorld) {
        WorldTestsmallmapJpanel.labNoCWorld = labNoCWorld;
    }

    public static JLabel getMoveWorld() {
        return moveWorld;
    }

    public static void setMoveWorld(JLabel moveWorld) {
        WorldTestsmallmapJpanel.moveWorld = moveWorld;
    }


    public static JLabel getQbnpxWorld() {
        return qbnpxWorld;
    }

    public static void setQbnpxWorld(JLabel qbnpxWorld) {
        WorldTestsmallmapJpanel.qbnpxWorld = qbnpxWorld;
    }

    public static JLabel getRwnpcWorld() {
        return rwnpcWorld;
    }

    public static void setRwnpcWorld(JLabel rwnpcWorld) {
        WorldTestsmallmapJpanel.rwnpcWorld = rwnpcWorld;
    }


    public static JLabel getSynpcWorld() {
        return synpcWorld;
    }

    public static void setSynpcWorld(JLabel synpcWorld) {
        WorldTestsmallmapJpanel.synpcWorld = synpcWorld;
    }


    public JLabel getM1207() {
        return this.m1207;
    }

    public void setM1207(final JLabel m1207) {
        this.m1207 = m1207;
    }

}
